<%@page import="entities.Link"%>
<%@page import="systems.ConfigSystem"%>
<%@page import="entities.SiteConfig"%>
<%@page import="java.util.List"%>
<%@page import="entities.Category"%>
<%@page import="helpers.UrlHelper"%>
<%
SiteConfig siteConfig = ConfigSystem.getConfigs();

Link link = (Link) request.getAttribute("link");
List<Category> categories = (List<Category>) request.getAttribute("categories");
%>
<jsp:include page="/templates/classic/layouts/header.jsp" />
    
		<h2 class="title">Photography</h2>
		<div class="dir">
			<a href="/home">Directory</a>
			<% 
			for (int i = 0; i < categories.size(); i++) {
			%>
			 > <a href="/category/<%=categories.get(i).getAlias() %>-<%=categories.get(i).getId()%>"><%=categories.get(i).getName() %></a>
			<% 
			} %>
		</div>
		
		<div class="links">
			<h2><%=link.getName() %></h2>
			<p><%=link.getDescription() %></p>
			<font color="green"><%=UrlHelper.fomatDomains(link.getUrl()) %></font>
			<a href="<%=link.getUrl() %>" rel="nofolow">Visit Site</a>
		</div>
<jsp:include page="/templates/classic/layouts/footer.jsp" />
    